package com.bootdo.program.wallpaper.dao;

import com.bootdo.program.wallpaper.domain.BzTalentDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 达人注册表
 * @author guoyunfei
 * @email 2549789059@qq.com
 * @date 2021-10-24 16:48:56
 */
@Mapper
public interface BzTalentDao {

	BzTalentDO get(Long id);

	List<BzTalentDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	List<BzTalentDO> listProfit(Map<String,Object> map);

	List<Integer> listProfitCount(Map<String,Object> map);

	BzTalentDO selectMoney(Map<String,Object> map);

	int save(BzTalentDO bzTalent);
	
	int update(BzTalentDO bzTalent);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	BzTalentDO getByUserId(@Param("userId")String userId);

	BzTalentDO getByWord(@Param("word")String word);

	BzTalentDO getByPhone(@Param("phone")String phone);

	int updatePassword(@Param("loginPassword")String loginPassword,@Param("userId")String userId);

	int updatePhone(@Param("userMobile")String loginPassword,@Param("userId")String userId);

	List<BzTalentDO> getByRecommenderWord(@Param("word")String word);

	void updateRecommenderWord(BzTalentDO bzTalentDO);

	int deleteUserByUserId(String userId);
}
